package net.sx.minemodule.mvp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

import net.sx.minemodule.mvp.item.StylistCollectItem;

/**
 * 主播
 *
 * @author 11470
 */
public class StylistCollectBean extends BaseModel<StylistCollectItem> implements Parcelable {

    /**
     * "num": "1",
     * "sid": "d4oBBkqWY7txrfyK6hXXl3dvG6wg/LkI6NtNhFDAsDizgdELtVpcLU21VcWT3boa",
     * "bgimg": "/images/wap/defaultavatar.png",
     * "uname": ""
     */
    private String bgimg;
    private String uname;
    private String num;
    private String sid;


    @Override
    public StylistCollectItem createItem(MultiTypeAdapter adapter) {
        return new StylistCollectItem(this);
    }

    public String getBgimg() {
        return bgimg;
    }

    public void setBgimg(String bgimg) {
        this.bgimg = bgimg;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.bgimg);
        dest.writeString(this.uname);
        dest.writeString(this.num);
        dest.writeString(this.sid);
    }

    public StylistCollectBean() {
    }

    protected StylistCollectBean(Parcel in) {
        this.bgimg = in.readString();
        this.num = in.readString();
        this.uname = in.readString();
        this.sid = in.readString();
    }

    public static final Creator<StylistCollectBean> CREATOR = new Creator<StylistCollectBean>() {
        @Override
        public StylistCollectBean createFromParcel(Parcel source) {
            return new StylistCollectBean(source);
        }

        @Override
        public StylistCollectBean[] newArray(int size) {
            return new StylistCollectBean[size];
        }
    };
}
